package com.tencreat.domain.im;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.tencreat.common.core.domain.dto.BaseEntityDTO;


/**
 * 常用语分类对象 im_phrases_type
 *
 * @author tencreat
 * @company 深圳腾创互联科技有限公司
 * @link https://tencreat.com
 * @since 2023-11-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("im_phrases_type")
public class ImPhrasesType extends BaseEntityDTO<ImPhrasesType> {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "排序")
    @ApiModelProperty(value= "排序")
    @TableField("`name`")
    private String name;

    @TableField(value = "`create_by`", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "`create_time`", fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(value = "`update_by`", fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(value = "`update_time`", fill = FieldFill.UPDATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}